import DefaultPage      from '@/pages/DefaultPage.vue'
import ErrorPage        from '@/pages/ErrorPage.vue'
import AssetsPage       from '@/pages/AssetsPage.vue'
import StylePage        from '@/pages/StylePage.vue'
import LessPage         from '@/pages/LessPage.vue'
import AjaxNotUtil      from '@/pages/AjaxNotUtil.vue'
import AxiosUsePage     from '@/pages/AxiosUsePage.vue'
import AjaxCors         from '@/pages/AjaxCors.vue'
import AjaxUtil         from '@/pages/AjaxUtil.vue'

import RouterPage       from '@/pages/RouterPage/RouterPage.vue'
import RouterOne        from '@/pages/RouterPage/children/RouterOne.vue'
import RouterTwo        from '@/pages/RouterPage/children/RouterTwo.vue'
import RouterThree      from '@/pages/RouterPage/children/RouterThree.vue'
import RouterFour       from '@/pages/RouterPage/children/RouterFour.vue'
import RouterFive       from '@/pages/RouterPage/children/RouterFive.vue'
import LoginPage        from '@/pages/RouterPage/children/LoginPage.vue'
import TokenPage        from '@/pages/RouterPage/children/TokenPage.vue'

import VuexPage         from '@/pages/VuexPage/VuexPage.vue'

import NotFoundPage     from '@/pages/NotFoundPage.vue'

export default [
    // { path:"/",component: DefaultPage },
    { 
        path: "/", 
        redirect: "/home" 
    },
    {
        path: "/home",
        name: "home",
        component: DefaultPage,
        meta: {
            hideHomeBtn:true
        }
    },
    {
        path: "/error",
        component: ErrorPage
    },
    {
        path: "/assets",
        component: AssetsPage
    },
    {
        path: "/style",
        component: StylePage
    },
    {
        path: "/less",
        component: LessPage,
        meta:{
            isPrivate:true
        }
    },
    {
        path: "/ajax",
        component: AjaxNotUtil
    },
    {
        path: "/axios",
        component: AxiosUsePage
    },
    {
        path: "/cors",
        component: AjaxCors
    },
    {
        path: "/util",
        component: AjaxUtil
    },
    {
        path: "/router",
        component: RouterPage,
        children: [
            // { path:"",redirect:"/one" },
            // { path:"/one",component:RouterOne },
            { path: "/one", component: RouterOne },
            { path: "two", component: RouterTwo },
            { path: "three", name:"three", component: RouterThree },
            { path: "four/:sid/:info?",name:"four",component: RouterFour },
            { path: "five",name:"five",component: RouterFive },
            { path: "login",name:"login",component: LoginPage },
            { path: "token",name:"token",component: TokenPage },
            { path: "*", component: NotFoundPage }
        ],
        meta: {
            test: "测试额外配置数据"
        }
    },
    { 
        path: "/vuex", 
        name:"vuex",
        component: VuexPage 
    },
    { 
        path: "*", 
        component: NotFoundPage 
    },
]
